using System;
using System.Xml.Serialization;
using System.Collections.Specialized;

namespace AppliedRecognition.Speech.QuickSwitch.serialization
{
	public enum SpeechStringEnum 
	{
		Enumerated,
		Num,
		Char,
		Military
	}

	public class SpeechStringItem 
	{
	
		private string start;
		[XmlAttribute()] public string Start 
		{
			get { return this.start; } set { this.start = value;}
		}

		private string end;
		[XmlAttribute()] public string End 
		{
			get { return this.end; } set { this.end = value;}
		}
		private string name;
		[XmlAttribute()] public string Name 
		{
			get { return this.name; } set { this.name = value;}
		}
		private SpeechStringEnum type;
		[XmlAttribute()] public SpeechStringEnum Type 
		{
			get { return this.type; } set { this.type = value;}
		}

		private StringCollection enumerated = new StringCollection();

		[XmlElement("Enumerated",typeof(string))]
		public StringCollection Enumerated 
		{
			get { return this.enumerated; } 
		}

		public override string ToString() 
		{
			return Name;
		}

		
	}
}
